import {RequestUtil} from '@/utils'

export class WxmpHttp {


    // ====== 公众号接入配置 ============
    static getWxmpAccountPage = (params: Record<string, any>) => RequestUtil.getAjax(`/manager/weixin/mp/account/pageList`, params)

    static addWxmpAccount = (data: Record<string, any>) => RequestUtil.postAjax(`/manager//weixin/mp/account/add`, data)

    static updateWxmpAccount = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`/manager//weixin/mp/account/update/${id}`, data)

    static delWxmpAccount = (data: any[]) => RequestUtil.delAjax(`/manager//weixin/mp/account/delete`, data)


    // 公众号标签




    // ====== 公众号接入配置 ============
    static getWxmpTagsPage = (params: Record<string, any>) => RequestUtil.getAjax(`/manager/weixin/mp/tags/pageList`, params)


    static syncWxmpTags = (appId:string) => RequestUtil.postAjax(`/manager/weixin/mp/tags/sync/${appId}`)

    static addWxmpTags = (data: Record<string, any>) => RequestUtil.postAjax(`/manager//weixin/mp/tags/add`, data)

    static updateWxmpTags = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`/manager//weixin/mp/tags/update/${id}`, data)

    static delWxmpTags = (data: any[]) => RequestUtil.delAjax(`/manager//weixin/mp/tags/delete`, data)




}
